<!doctype html>
<html lang="en">
  <head>
    <!-- <script src="https://unpkg.com/react-scan/dist/auto.global.js"></script> -->
    <meta charset="UTF-8" />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
    />
    <title>Hyprnote</title>
    <style>
      html, body, #root {
        background: transparent !important;
        background-color: transparent !important;
      }
    </style>
    <!-- Polyfill __TAURI_INTERNALS__ in iframe context (extension host). See docs/developers/extensions. -->
    <script>
      (function() {
        var isIframeContext = window.self !== window.top;
        if (!isIframeContext) return;

        window.__TAURI_INTERNALS__ = {
          _metadata: {
            currentWindow: { label: "iframe", kind: "WebviewWindow" },
            currentWebview: { label: "iframe", windowLabel: "iframe" },
            windows: [],
            webviews: []
          },
          invoke: function() { return Promise.reject(new Error("Tauri not available in iframe")); },
          transformCallback: function() { return 0; },
          convertFileSrc: function(path) { return path; }
        };
      })();
    </script>
  </head>
  <body spellcheck="false">
    <div id="root"></div>
    <script type="module" src="/src/main.tsx"></script>
  </body>
</html>
